package com.xbongbong.saas.service;

import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.schedule.domain.entity.ScheduleTaskRelateBusinessEntity;
import com.xbongbong.schedule.pojo.dto.ScheduleTaskActionDTO;
import com.xbongbong.schedule.pojo.vo.ScheduleTaskActionVO;

public interface ScheduleTaskActionService {

    /**
     * 延时任务动作执行
     *
     * @param scheduleTaskActionDTO
     * @return
     * @throws XbbException
     */
    ScheduleTaskActionVO scheduleTaskAction(ScheduleTaskActionDTO scheduleTaskActionDTO) throws XbbException;

    /**
     * 延时任务-阶段超时提醒-消息推送
     *
     * @param scheduleTaskRelateBusinessEntity
     * @throws XbbException
     */
    void stageTimeOutRemindPush(ScheduleTaskRelateBusinessEntity scheduleTaskRelateBusinessEntity) throws XbbException;
}
